#include "MarsPrecompile.h"

#include "MarsApp.h"
#include "MarsEngine.h"

using namespace App;

App::App() 
{
}

App::~App( )
{
    Shutdown();
}

bool App::Initialize( HINSTANCE hInstance, HWND hwnd )
{
	if ( !Engine::Instance().Initialize( hInstance, hwnd ) )
	{
		return false;
	}

    return LoadContent();
}

bool App::LoadContent()
{
    // Override with demo specifics, if any...
    return true;
}

void App::UnloadContent()
{
    // Override with demo specifics, if any...
}

void App::Shutdown()
{
	Engine::Destroy();

    UnloadContent();
}